百度智能云

All Product Document

          Cloud Compute Service

          Install the virtio driver

          Install the virtio Driver in Linux System

          Centos 6 / 7 System

          [root@localhost ~]# cp /boot/initramfs-$(uname -r).img  /boot/initramfs-$(uname -r).img.bak     # Back up initramfs first (optional steps)
          
          [root@localhost ~]# mkinitrd -f --with=virtio_blk --with=virtio_pci /boot/initramfs-$(uname -r).img $(uname -r)

          Ubuntu/Debian System

          [root@localhost ~]# echo -e "virtio_pci\nvirtio_blk" >> /etc/initramfs-tools/modules
          
          [root@localhost ~]# update-initramfs  -u
          Previous
          Check the virtio driver
          Next
          Install the cloudbase-init