实现
mkisofs -V inteldriver -J -jcharset=utf8 -r -o /tmp/driver.iso /tmp/test/
# 将 /tmp/test/ 目录 打包成 /tmp/driver.iso mkisofs -V inteldriver -J -jcharset=utf8 -r -o /tmp/driver.iso /tmp/test/
# 将 /tmp/test/ 目录 打包成 /tmp/driver.iso pip install gevent public static function uuid_gen()
{
$chars = md5(uniqid(mt_rand(), true));
$uuid = substr($chars, 0, 8) . '-'
. substr($chars, 8, 4) . '-'
. substr($chars, 12, 4) . '-'
. substr($chars, 16, 4) . '-'
. substr($chars, 20, 12);
return $uuid;
} /**
* 生成MAC
*/
public static function mac_gen()
{
$array = array(
mt_rand(0x00, 0x7f),
mt_rand(0x00, 0x7f),
mt_rand(0x00, 0x7f),
mt_rand(0x00, 0x7f),
mt_rand(0x00, 0xff),
mt_rand(0x00, 0xff)
);
return join(':', array_map(function ($v) {
return sprintf("%02X", $v);
}, $array));
} KVM 虚拟机 网卡 Qos设置网卡的Qos可以限制网卡的IO速率