User Tools

Site Tools


ubuntu:kvm:setup_kvm_with_bridged_networking_and_virt-manager

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntu:kvm:setup_kvm_with_bridged_networking_and_virt-manager [2019/12/26 17:43] – [Configure the Bridge] peterubuntu:kvm:setup_kvm_with_bridged_networking_and_virt-manager [2020/07/15 09:30] (current) – external edit 127.0.0.1
Line 204: Line 204:
 ---- ----
  
-====== Creating a VM ======+===== Verify that the bridge has come up ===== 
 + 
 +<code bash> 
 +ip a s br0 
 +</code> 
 + 
 +---- 
 + 
 +====== Create a VM using Virt-Manager (GUI) ======
  
 Use **virt-manager** to create VMs. Use **virt-manager** to create VMs.
Line 237: Line 245:
  
 ---- ----
 +
 +====== Create a VM from command line ======
 +
 +<code bash>
 +sudo virt-install \
 +  --name ubuntu-vm \
 +  --os-type linux \
 +  --os-variant ubuntu18.04 \
 +  --ram 2048 \
 +  --vcpu 1 \
 +  --disk path=/var/lib/libvirt/images/ubuntu-vm.qcow2,size=10 \
 +  --graphics vnc,listen=0.0.0.0 \
 +  --noautoconsole \
 +  --hvm \
 +  --cdrom /home/peter/vm/ubuntu-18.04-live-server-amd64.iso \
 +  --boot cdrom,hd
 +</code>
 +
 +----
 +
 +===== Find VNC display port for ubuntu-vm =====
 +
 +<code bash>
 +sudo virsh list --all
 +</code>
 +
 +returns:
 +
 +<code bash>
 +Id    Name          State
 +------------------------------
 +1     ubuntu-vm     running
 +2     debian-vm     running
 +...
 +</code>
 +
 +----
 +or
 +
 +<code bash>
 +sudo virsh vncdisplay ubuntu-vm
 +</code>
 +
 +returns:
 +
 +<code bash>
 +:0
 +</code>
 +
 +Connect using Remote Desktop Viewer using IP address and VNC port as "0".
 +
 +----
 +
  
 ====== Closing Thoughts ====== ====== Closing Thoughts ======
ubuntu/kvm/setup_kvm_with_bridged_networking_and_virt-manager.1577382195.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki