Halo sobat pembaca semuanya. Jadi saya sedang menginstall sebuah VPS berbasis KVM dengan virt-install. Kira-kira langkahnya begini:
$ ssh ubuntu@1.2.3.4
$ sudo -i #
root@test1:~# virt-install --os-type linux --name server2 \ --ram 4028 --disk path=/var/lib/libvirt/images/server2.qcow2,format=raw,size=20 \ --network bridge=virbr0 --vcpus 4 --graphics vnc \ --location http://archive.ubuntu.com/ubuntu/dists/precise/main/installer-amd64/ \ --extra-args "auto=true interface=eth0 hostname=ubuntu1204 url=http://ostolc.org/pxe/ubuntu12.04-64.cfg" \ --console pty,target_type=serial --os-variant ubuntuprecise Starting install... Retrieving file MANIFEST... | 3.5 kB 00:00 ... Retrieving file MANIFEST... | 3.5 kB 00:00 ... Retrieving file linux... | 9.5 MB 00:01 ... Retrieving file initrd.gz... | 33 MB 00:01 ... Creating domain... | 0 B 00:00 WARNING Unable to connect to graphical console: virt-viewer not installed. Please install the 'virt-viewer' package. Domain installation still in progress. You can reconnect to the console to complete the installation process.
root@test1:~# virsh dumpxml server2 | grep vnc
<graphics type='vnc' port='5900' autoport='yes' listen='127.0.0.1'>
$ ssh ubuntu@1.2.3.4 -L localhost:5902:127.0.0.1:5900
~~DISQUS~~