mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user