Convert Ubuntu VM to Proxmox
This is to describe how to convert Ubuntu VM to Proxmox.
VM creation
Following hardware options can be considered
- BIOS: SeaBIOS (Should be able to see Grub menu)
- Machine: Default (i440fx)
- SCSI Controller: VirtIO SCSI (It might not be used as
sata0
to be considered for disk) - Hard Disk (sata0):
disk_image_file
- Network Device (net0): vmxnet3=
<mac_address>
(This is default for VMware, can use other type too)
Convert the VMware disk to Proxmox disk and attach the disk to new VM
qm importdisk 121 ubuntu.vmdk pool240ssd --format qcow2
Attach the disk as sata0.
Boot
After boot up system show a GUI error screen, press Contrl + Alt + F3
to switch to console mode.
Note: Press Shift
to active Grub Menu if required
Network
Find out new network interface UUID
nmcli conn
Change NetworkManager file name
cd /etc/NetworkManager/system-connections
mv Wired\ connection\ 1-<old_uuid>.nmconnection Wired\ connection\ 1-<new_uuid>.nmconnection
Update nmconnection
file
[connection]
id=<new_interface_name>
uuid=<new_uuid>
type=ethernet
autoconnect-priority=-999
interface-name=<new_interface_name>
permissions=
timestamp=1628151710
[ethernet]
mac-address-blacklist=
[ipv4]
address1=192.168.1.232/24,192.168.1.254
dns=192.168.1.250;8.8.8.8;
dns-search=
method=manual
[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=disabled
[proxy]
Errors
No login GUI
After boot, only a white screen with error message appears, this was fixed by running apt update and upgrade
First, update /etc/apt/sources.list
file, replace all repo URL to old-releases.ubuntu.com
Then run following commands
apt update
apt upgrade -y