server安装pve虚拟机折腾过程
server安装pve虚拟机折腾过程安装realtek usb2.5GB网卡, pve7应该是默认支持的, 我也看到论坛上说明了最新的内核已经修复了问题.
而我自己是经常这两个脚本折腾弄好的, 我印象是第一个, 不过我把两个都贴出来
https://github.com/virtrue/RTL8152-8156--Driver-for-Proxmox-VE5-6-and-debian
https://github.com/dreamteki/RTL8152-Driver-for-Proxmox-VE5-6-and-debian
用命令dmesg | grep r8152去测试是否安装好了. 如果不行或者可以试试插拔一下. 我看到论坛上有人说这样可以的,具体要自己测试了.
ssh 命令
在不重新开机的情况下重启网络
ifup -a
aliasecho "alias ll='ls -alFh'" >> ~/.bashrc
查看vm configqm config {VMID}
qm <command> <vmid>
qm <vmid>
--memory<MBYTES> memory in MB (64 - 8192)
--smp<N> set number of CPUs to <N>
--ostype NAME specify OS type
--onboot start at boot
--keyboard XX set vnc keyboard layout
--cpuunits <num> CPU weight for a VM
--name <text> Add a name for the VM
--boot specify boot order
--bootdisk <disk> enable booting from <disk>
--acpi (yes|no) enable/disable ACPI
--localtime (yes|no)set the RTC to local time
--vlan MODEL=XX:XX:XX:XX:XX:XX[,MODEL=YY:YY:YY:YY:YY:YY]
--ide<N> file,][,media=d]
[,cyls=c,heads=h,secs=s[,trans=t]]
[,snapshot=on|off][,cache=on|off][,format=f]
--ide<N> <GBYTES> create new disk
--ide<N> delete delete disk
--cdrom <file> is an alias for --ide2 <file>,media=cdrom
--scsi<N> file,][,media=d]
[,cyls=c,heads=h,secs=s[,trans=t]]
[,snapshot=on|off][,cache=on|off][,format=f]
--scsi<N> <GBYTES> create new disk
--scsi<N> delete delete disk
--virtio<N> file,][,media=d]
[,cyls=c,heads=h,secs=s[,trans=t]]
[,snapshot=on|off][,cache=on|off][,format=f]
--virtio<N> <GBYTES>create new disk
--virtio<N> delete delete disk
qm monitor <vmid> connect to vm control monitor
qm start <vmid> start vm
qm reboot <vmid> reboot vm (shutdown, start)
qm shutdown <vmid> gracefully stop vm (send poweroff)
qm stop <vmid> kill vm (immediate stop)
qm reset <vmid> reset vm (stop, start)
qm suspend <vmid> suspend vm
qm resume <vmid> resume vm
qm destroy <vmid> destroy vm (delete all files)
qm cdrom <vmid> [<device>] <path>set cdrom path. <device is ide2 by default>
qm cdrom <vmid> [<device>] eject eject cdrom
qm unlink <vmid> <file>delete unused disk images
qm vncproxy <vmid> <ticket>open vnc proxy
qm list list all virtual machines
存储配置/etc/pve/storage.cfg
~# pvesm status
Name Type Status Total Used Available %
local dir active 98497780 10616500 82831732 10.78%
local-lvm lvmthin active 354791424 33776143 321015280 9.52%
配置文件位置
vm的配置文件位置
/etc/pve/qemu-server/*.conf
pve hostname配置文件位置/etc/hostname
页:
[1]