Check-in [7eafff75ba]
Not logged in
Overview
Comment:Fixed random mac generation for python3
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 7eafff75ba19e4a436eac75f5b8be903c0c58ad3
User & Date: vitus on 2019-10-03 10:26:02
Other Links: manifest | tags
Context
2019-10-04
07:39
Fixed parsing of device list in cdrom command check-in: 416aa92d0a user: vitus tags: trunk
2019-10-03
10:26
Fixed random mac generation for python3 check-in: 7eafff75ba user: vitus tags: trunk
07:54
Make vws list --stated distinguish between stopped and hyberated (by vws save) machines check-in: a51866b638 user: vitus tags: trunk
Changes

Modified vws from [0aa3cad620] to [b6f31d3d5f].

787
788
789
790
791
792
793
794

795
796
797
798
799
800
801
787
788
789
790
791
792
793

794
795
796
797
798
799
800
801







-
+







               "drive":"-drive media=disk,index=0,if={interface},file={image}",
               "cdrom":"-drive media=cdrom,index=2,if=ide",
               "sound":"-soundhw hda",
               "group":config.get("permissions", "vm_group"),
               "usb":"-usb",
               "rtc":"",
               "extraargs":"${1:+\"$@\"}"}
    macaddr = ":".join(["%02x" % ord(x) for x in  chr(0x52) + os.urandom(5)])
    macaddr = ":".join(['52'] + ["%02x" % x for x in  os.urandom(5)])
    if parsed_args.shared:
        machinedir = os.path.join(config.get("directories", "SharedVMs"),
                                  parsed_args.machine)
        dirmode = 0o775
    else:
        machinedir = os.path.join(pwd.getpwuid(os.getuid()).pw_dir, "VWs",
                                  parsed_args.machine)