# Quick manual recipe for installing VyOS locally in a virtual
machine and using dd to image the install to a VPS.
 
### Why?
Most VPS providers don't have a mechanism for booting from an ISO
which is required for installing VyOS.
 
Homepage: https://github.com/hydrajump/
Author: hydrajump <wave@hydrajump.com>
 
## Create VyOS virtual machine on VMware vSphere ESXi or Fusion
Debian 6 64bit
4GB disk
CD VyOS.iso
 
If using Fusion set Networking to "Autodetect"
 
 
## Boot VyOS virtual machine
```
Login vyos/vyos
```
 
## Configure VyOS with minimal config necessary for VPS provider
 
```
configure
 
set interfaces ethernet eth0 address dhcp
 
delete interfaces ethernet eth0 hw-id
 
set service ssh
 
commit
 
save
 
exit
```
 
## Install VyOS in virtual machine
 
```
install image
 
yes
auto
sda
yes
4294
1.0.2
/config/config.boot
vyos
vyos
sda
```
 
## Copy local VyOS virtual machine install to VPS
 
Takes about 5-13 minutes to complete (depends)
 
**Change /dev/xvdb to the disk you want to install to on the VPS**
**If you don't use an ssh key to connect remove -i your_ssh_key.pem**
 
```
dd if=/dev/sda bs=1M | gzip | ssh -i your_ssh_key.pem vps-user@vps-ip 'gzip -d | sudo dd of=/dev/xvdb bs=1M'
```
 
If you want to see the progress of the dd image upload open another
console session to your local VyOS virtual machine and run
 
```
while :;do killall -USR1 dd;sleep 10;done
