我使用 libvirt + qemu 来启动带有 IDE 总线磁盘的虚拟机
libvirt 中的设备:
<disk type='network' device='disk'>
<driver name='qemu' type='raw' cache='none' io='native'/>
<source protocol='iscsi' name='xxx'>
<host name='127.0.0.1' port='xxx'/>
</source>
<target dev='hdb' bus='ide'/>
<boot order='3'/>
<alias name='ide0-0-1'/>
<address type='drive' controller='0' bus='0' target='0' unit='1'/>
</disk>
Run Code Online (Sandbox Code Playgroud)
在 qemu 中:
-drive file.driver=iscsi,file.portal=127.0.0.1:xxx,file.target=xxx,file.lun=xxx,file.transport=tcp,format=raw,if=none,id=drive-ide0-0-1,cache=none,aio=native
-device ide-hd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1,bootindex=3,write-cache=on
Run Code Online (Sandbox Code Playgroud)
来宾操作系统是 CentOS-7.9-x86_64-DVD-2009
启动后,dmesg 中显示
May 18 06:07:37 localhost kernel: ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xd120 irq 14
May 18 06:07:37 localhost kernel: ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma …Run Code Online (Sandbox Code Playgroud) 正常的 Debian Sid 在这里,我想知道为什么 Apt 安装了一些与下一版 Python 明显相关的东西(截至 2020 年 8 月 3 日)
$ locate -b python3.9
/usr/lib/python3.9
$ du -s /usr/lib/python3.9/*
756 /usr/lib/python3.9/distutils
72 /usr/lib/python3.9/lib-dynload
484 /usr/lib/python3.9/lib2to3
380 /usr/lib/python3.9/tkinter
$ for d in `ls -d /usr/lib/python3.9/*` ; do dpkg -S $d ; done
python3-distutils: /usr/lib/python3.9/distutils
python3-tk:amd64: /usr/lib/python3.9/lib-dynload
python3-lib2to3: /usr/lib/python3.9/lib2to3
python3-tk:amd64: /usr/lib/python3.9/tkinter
$
Run Code Online (Sandbox Code Playgroud)