「PVE」- 虚拟机(Guests)

  CREATED BY JENKINSBOT

Qemu-guest-agent – Proxmox VE

复制粘贴

SPICE/Features
Proxmox VE/SPICE
在 PVE 環境下使用 SPICE Client 連接 VM 桌面 [Jonathan’s Wiki 筆記]

All Linux distributions released after 2011 have the necessary qxl driver included as a part of the Xorg package.

在 Linux 中,通过 Remote Viewer 命令,来通过 pve-spice.vv 来连接:remote-viewer ./pve-spice.vv

删除虚拟机(删)

# qm destroy <vmid> --destroy-unreferenced-disks --purge

# for i in $(seq 0 9); do qm destroy 16801005${i}; done

修改虚拟机(改)

删除配置

An Example of using unlink – Remove virtual disks | Proxmox Support Forum

通过命令删除配置(图形化操作超时,命令行将成为替代方法):

# qm config 168010121                                       # cat /etc/pve/nodes/<node-name>/qemu-server/168010121.conf
...
unused0: cop-for-dev:vm-168010121-disk-0
...

# qm unlink 168010121 --idlist unused0

迁移磁盘

// qm disk move <vmid> <disk> [<storage>] [OPTIONS]
// qm move_disk
// qm move-disk

qm disk move 168010121 scsi0 SSD-RAID-5 --delete 

迁移虚拟机

qm migrate 168010121 dell-r750xs-100245

… Host key verification failed …(虚拟机迁移失败)
[SOLVED] – Host key verification failed when migrate | Proxmox Support Forum

ssh -o 'HostKeyAlias=<Target node Name>' root@<Target node IP>