PDA

View Full Version : How to install KVM server for VPS reselling and windows iso on one VPS?



Fli
09-05-2013, 11:20 AM
Hello,

when i have plain linux server, i want to create KVM VPSs on it. I have an .ISO windows OS image which i want to isntall on KVM VPS, how to create KVM VPS and install Windows .iso image on it?

LeaseVPS
07-14-2014, 09:10 AM
HI,

I'll assume Ubuntu here, after installing KVM, libvirt + tools as per their server guide below:

https://help.ubuntu.com/14.04/serverguide/libvirt.html

Here is a command I used just the other day to spin up a quick centos install, then I just connected to the gui installer via VNC


virt-install -n centos_test -r 4096 \
--disk path=/var/lib/libvirt/images/centos-test.img,bus=virtio,size=6 -c \
/var/lib/libvirt/images/CentOS-6.5-x86_64-minimal.iso --network network=default,model=virtio \
--graphics vnc,listen=0.0.0.0 --noautoconsole -v

Once the OS is installed you can setup either ssh for linux or rdp for windows

Regards, Daniel

Fli
07-14-2014, 11:44 PM
Once the OS is installed you can setup either ssh for linux or rdp for windows
Thanks for an idea. though im not sure about this part "rdp for windows". How to setup it while centOS was installed on a VPS (at least i understood it according to command u mentioned).

LeaseVPS
07-15-2014, 01:04 AM
Thanks for an idea. though im not sure about this part "rdp for windows". How to setup it while centOS was installed on a VPS (at least i understood it according to command u mentioned).

Yep that was just an example. windows would look similar to the below:


virt-install -n win7-vm -r 4096 \
--disk path=/var/lib/libvirt/images/win7.img,bus=virtio,size=6 -c \
/var/lib/libvirt/images/win7-64bit.iso --network network=default,model=virtio \
--graphics vnc,listen=0.0.0.0 --noautoconsole -v

Regards, Daniel