-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4fd3cb1
commit dc44f97
Showing
1 changed file
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -202,8 +202,8 @@ virsh snapshot-revert ubuntu-server-2404 <name> | |
virsh snapshot-delete ubuntu-server-2404 <name> | ||
virsh destroy ubuntu-server | ||
virsh undefine ubuntu-server --nvram --remove-all-storage | ||
virsh destroy ubuntu-server-2404 | ||
virsh undefine ubuntu-server-2404 --nvram --remove-all-storage | ||
``` | ||
|
||
### Installing Ubuntu 24.04 Desktop on a headless Ubuntu Server using VNC | ||
|
@@ -237,6 +237,15 @@ ip addr show | grep -oP '(?<=inet\s)\d+(\.\d+){3}' | grep -v 127.0.0.1 | |
# Use a vnc client to connect to `vnc://<host_ip>:5900` | ||
# When the install is complete the VM will be shut down | ||
$ virsh domblklist ubuntu-desktop-2404 | ||
Target Source | ||
--------------------------------------------------------------- | ||
vda /var/lib/libvirt/images/ubuntu-desktop-2404.qcow2 | ||
sda /var/lib/libvirt/iso/ubuntu-24.04-desktop-amd64.iso | ||
$ virsh change-media ubuntu-desktop-2404 sda --eject | ||
Successfully ejected media. | ||
# Reconfigure VNC | ||
virsh edit ubuntu-desktop-2404 | ||
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='foobar'/> | ||
|
@@ -248,6 +257,11 @@ virsh restart ubuntu-desktop-2404 | |
# enable serial service in VM | ||
sudo systemctl enable --now [email protected] | ||
# Install acpi or qemu-guest-agent in the vm so that | ||
# 'virsh shutdown <image>' works | ||
$ sudo apt-get update | ||
$ sudo apt-get install qemu-guest-agent | ||
# Optional - user setup | ||
# Add User | ||
# Settings > Power > Blank Screen: None | ||
|