fix(host-deployer): add cmdline vsyscall=emulate on ramfs guest (#19224)

deploy fs on older system like centos 6, need emulate vsyscall.
otherwise will get error like:
    Code: Unable to access opcode bytes at 0xffffffffff6003d6.
This commit is contained in:
wanyaoqi
2024-01-11 05:45:32 +08:00
committed by GitHub
parent bfa7a4ec5d
commit 851eb1d347
+2
View File
@@ -663,6 +663,7 @@ func (d *QemuX86Driver) StartGuest(sshPort, ncpu, memSizeMB int, hugePage bool,
}
cmd += __("-drive id=ide0-cd0,if=none,media=cdrom,file=%s", DEPLOY_ISO)
cmd += __("-device ide-cd,drive=ide0-cd0,bus=ide.1")
cmd += __("-append vsyscall=emulate")
log.Infof("start guest %s", cmd)
out, err := manager.startQemu(cmd)
@@ -739,6 +740,7 @@ func (d *QemuARMDriver) StartGuest(sshPort, ncpu, memSizeMB int, hugePage bool,
}
cmd += __("-drive if=none,file=%s,id=cd0,media=cdrom", DEPLOY_ISO)
cmd += __("-device scsi-cd,drive=cd0,share-rw=true")
cmd += __("-append vsyscall=emulate")
log.Infof("start guest %s", cmd)
out, err := manager.startQemu(cmd)