Hi,
I am trying to experiment with virtualization but have hit a stumbling block at pretty much the first hurdle.
I am running a headless server running Ubuntu 16.04.1 which is accessed through Putty and Webmin. I have created a kvm virtual machine using the guide at http://www.cyberciti.biz/faq/how-to-...u-linux-14-04/ as a base.
I created the machine using the code:
Once the machine was created I used the command:
which gave the output of:
I then used the command:
but I received a warning message:
When I try to connect from a Windows machine using a VNC viewer I receive a message that the "Connection was refused by the host computer".
The output of the guestubuntu.xml file is:
Any guidance on where I am going wrong would be greatly appreciated.
I am trying to experiment with virtualization but have hit a stumbling block at pretty much the first hurdle.
I am running a headless server running Ubuntu 16.04.1 which is accessed through Putty and Webmin. I have created a kvm virtual machine using the guide at http://www.cyberciti.biz/faq/how-to-...u-linux-14-04/ as a base.
I created the machine using the code:
Code:
sudo virt-install \
--virt-type=kvm \
--name guestubuntu \
--ram 512 \
--vcpus=1 \
--os-variant ubuntu16.04 \
--hvm \
--cdrom=/var/lib/libvirt/boot/ubuntu-16.04.1-server-amd64.iso \
--network network=default,model=virtio \
--graphics vnc \
--disk path=/var/lib/libvirt/images/guesutbuntu.img,size=10,bus=virtio
Once the machine was created I used the command:
Code:
sudo virsh dumpxml guestubuntu | grep vnc
Code:
<graphics type='vnc' port='5900' autoport='yes' listen='127.0.0.1'>
Code:
ssh username@servername -L 5900:127.0.0.1:5900
Code:
bind: Address already in use
The output of the guestubuntu.xml file is:
Code:
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
virsh edit guestubuntu
or other application using the libvirt API.
-->
<domain type='kvm'>
<name>guestubuntu</name>
<uuid>005ce974-a999-44fd-a1b4-e92a89538096</uuid>
<memory unit='KiB'>524288</memory>
<currentMemory unit='KiB'>524288</currentMemory>
<vcpu placement='static'>1</vcpu>
<os>
<type arch='x86_64' machine='pc-i440fx-wily'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
</features>
<cpu mode='custom' match='exact'>
<model fallback='allow'>phenom</model>
</cpu>
<clock offset='utc'>
<timer name='rtc' tickpolicy='catchup'/>
<timer name='pit' tickpolicy='delay'/>
<timer name='hpet' present='no'/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<pm>
<suspend-to-mem enabled='no'/>
<suspend-to-disk enabled='no'/>
</pm>
<devices>
<emulator>/usr/bin/kvm-spice</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/var/lib/libvirt/images/guesutbuntu.img'/>
<target dev='vda' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<target dev='hda' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
<controller type='usb' index='0' model='ich9-ehci1'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci1'>
<master startport='0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci2'>
<master startport='2'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci3'>
<master startport='4'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/>
</controller>
<controller type='pci' index='0' model='pci-root'/>
<controller type='ide' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
</controller>
<interface type='network'>
<mac address='52:54:00:66:aa:c0'/>
<source network='default'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<input type='keyboard' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes'/>
<video>
<model type='cirrus' vram='16384' heads='1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</memballoon>
</devices>
</domain>
Any guidance on where I am going wrong would be greatly appreciated.