ubuntu:kvm:setup_kvm_with_bridged_networking_and_virt-manager
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:kvm:setup_kvm_with_bridged_networking_and_virt-manager [2019/12/26 17:45] – [Restart your system] peter | ubuntu:kvm:setup_kvm_with_bridged_networking_and_virt-manager [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 202: | Line 202: | ||
</ | </ | ||
- | ----===== | + | ---- |
- | Verify that the bridge has come up ===== | + | ===== Verify that the bridge has come up ===== |
<code bash> | <code bash> | ||
Line 212: | Line 212: | ||
---- | ---- | ||
- | ====== | + | ====== |
Use **virt-manager** to create VMs. | Use **virt-manager** to create VMs. | ||
Line 245: | 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=/ | ||
+ | --graphics vnc, | ||
+ | --noautoconsole \ | ||
+ | --hvm \ | ||
+ | --cdrom / | ||
+ | --boot cdrom,hd | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Find VNC display port for ubuntu-vm ===== | ||
+ | |||
+ | <code bash> | ||
+ | sudo virsh list --all | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | Id Name State | ||
+ | ------------------------------ | ||
+ | 1 | ||
+ | 2 | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | or | ||
+ | |||
+ | <code bash> | ||
+ | sudo virsh vncdisplay ubuntu-vm | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | :0 | ||
+ | </ | ||
+ | |||
+ | Connect using Remote Desktop Viewer using IP address and VNC port as " | ||
+ | |||
+ | ---- | ||
+ | |||
====== Closing Thoughts ====== | ====== Closing Thoughts ====== |
ubuntu/kvm/setup_kvm_with_bridged_networking_and_virt-manager.1577382345.txt.gz · Last modified: 2020/07/15 09:30 (external edit)